home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 125
/
Freelog_MarsAvril2015_No125.iso
/
Musique
/
Quod Libet
/
quodlibet-3.3.0-installer.exe
/
bin
/
quodlibet
/
formats
/
remote.pyc
(
.txt
)
< prev
next >
Wrap
Python Compiled Bytecode
|
2014-12-31
|
3KB
|
64 lines
# Source Generated with Decompyle++
# File: in.pyc (Python 2.7)
import os
from quodlibet.formats._audio import AudioFile
from quodlibet.util.path import fsnative, is_fsnative
from quodlibet.util.uri import URI
extensions = []
class RemoteFile(AudioFile):
is_file = False
fill_metadata = True
format = 'Remote File'
def __init__(self, uri):
self['~uri'] = str(URI(uri))
self.sanitize(fsnative(unicode(self['~uri'])))
def __getitem__(self, key):
value = super(RemoteFile, self).__getitem__(key)
if key in ('~filename', '~mountpoint') and not is_fsnative(value):
if os.name == 'nt':
value = unicode(value)
else:
value = value.encode('utf-8')
return value
def rename(self, newname):
pass
def reload(self):
pass
def exists(self):
return True
def valid(self):
return True
def mounted(self):
return True
def write(self):
raise TypeError('RemoteFiles do not support writing!')
def can_change(self, k = None):
if k is None:
return []
return None
key = property((lambda self: self['~uri']))
info = RemoteFile
types = [
RemoteFile]